---
title: "get uploaded file · RUAL Documentation"
description: "Get a recently uploaded file. The file is stored on a temp. dir, move it if you want to keep it."
canonical: https://docs.rual.nl/block-types/state ui/state_get_uploaded_file
language: en
---

# get uploaded file

This block is part of the [`state ui`](https://docs.rual.nl/block-types/state%20ui) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Field Selection Required

This block relies on a field that you select to perform its data actions. You must manually select the field you want to use in your flow using the field selector modal. To access the modal, click the white button on the block.

Get a recently uploaded file. The file is stored on a temp. dir, move it if you want to keep it.

- flow `flow`

- form id `value` A unique ID for the form. Used to retrieve the file

- flow `flow`

- file `file` File succesfully uploaded

- success `condition` Returns true if a file was found.

- filename `value` Original file name given when uploaded

- mimetype `value` Original file mimetype given when uploaded

A typical wiring for [get uploaded file](https://docs.rual.nl/block-types/state%20ui/state_get_uploaded_file): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the get uploaded file block: typical wiring for get uploaded file.](https://docs.rual.nl/canvas-examples/state_get_uploaded_file.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
